export function goDetail(id) {
    uni.navigateTo({
        url: "/pages/detail/index?id=" + id,
        fail: () => {
            uni.showToast({
                icon: 'error',
                title: '超出最高层级限制',
                duration: 2000
            });
        }
    });
}
export function goUserInfo(name) {
    uni.navigateTo({
        url: "/pages/userinfo/index?name=" + name,
        fail: () => {
            uni.showToast({
                icon: 'error',
                title: '超出最高层级限制',
                duration: 2000
            });
        }
    });
}

export function goLogin(name) {
    uni.navigateTo({
        url: "/pages/login/index",
        fail: () => {
            uni.showToast({
                icon: 'error',
                title: '超出最高层级限制',
                duration: 2000
            });
        }
    });
}
